<?php echo $this->Session->flash(); ?>
<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<?php
echo $form->create('Owner');
echo $form->hidden('Owner.id');
?>

<table>
    <thead>
        <tr>
            <th>Tipo de dato</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Nombres</td>
            <td><?php echo $form->input("Owner.nombres", array('label' => '')); ?></td>
        </tr>
        <tr>
            <td>Primer apellido</td>
            <td><?php echo $form->input("Owner.primer_apellido", array('label' => '')); ?></td>
        </tr>
        <tr>
            <td>Segundo apellido</td>
            <td><?php echo $form->input("Owner.segundo_apellido", array('label' => '')); ?></td>
        </tr>
        <tr>
            <td>Documento</td>
            <td><?php echo $form->input("Owner.documento", array('label' => '')); ?></td>
        </tr>
    </tbody>
</table>

<fieldset>
    <legend>OBSERVACIONES SOBRE LA REVISIÓN</legend>
    <?php echo $form->input("OwnerReview.concepto", array('label' => '', 'class' => 'txtarea')); ?>
    <?php echo $form->input("OwnerReview.calificacion", array('label' => 'Calificación', 'options' => array('empty' => 'Seleccione', 'Cumple' => 'Cumple', 'Subsanable' => 'Subsanable'))); ?>


</fieldset>

<?php
echo $ajax->submit('Guardar', array('url' => array('controller' => 'ownerReviews', 'action' => 'add', $owner_id), 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'));
echo $form->end();
?>
<br>
<br>
<br>
<?php
echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'ownerReviews', 'action' => 'index', $owner_id), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading', 'escape' => false));
?>
<br>